package com.deruan.hotcore.resource.command;

import org.columba.api.command.ICommandReference;

import com.deruan.hotcore.resource.gui.tree.ResultRootNode;
import com.deruan.hotcore.resource.gui.tree.ResultTreeNode;

public class ResultCommandReference implements ICommandReference
{
	private ResultTreeNode sourceNode;
	
	public ResultCommandReference(ResultTreeNode node)
	{
	    this.sourceNode = node;	
	}
	
	public boolean tryToGetLock(Object locker) {
		return true;
	}

	public void releaseLock(Object locker) {
		
	}
	
	public ResultTreeNode getSelectedNode()
	{
		return sourceNode;
	}

}
